from django.db import models

# Create your models here.
class Photo(models.Model):
    title = models.CharField(max_length=100)
    filepath = models.CharField(max_length=100)
    filepath_s = models.CharField(max_length=100)
    # auto_now_add=True：代表的是数据一旦被添加到数据库，就会使用当前的时间作为值
    pub_time = models.DateTimeField(auto_now_add=True)

